package cn.org.donald.service.impl;

import cn.org.donald.pojo.entity.system.LogError;
import cn.org.donald.mapper.LogErrorMapper;
import cn.org.donald.service.system.LogErrorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 *  错误日志服务实现类
 * </p>
 *
 * @author Donald
 * @since 2020-12-27
 */
@Service(version = "1.0.0", group = "donald")
public class LogErrorServiceImpl extends ServiceImpl<LogErrorMapper, LogError> implements LogErrorService {

    @Autowired
    private LogErrorMapper logErrorMapper;

    @Override
    public boolean add(LogError logError) {
        int rows = logErrorMapper.insert(logError);
        return rows > 0;
    }
}
